//************************************************ 
//  *Author：COCO
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在Base_DefectItem.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"DefectItemCode":"","DefectItemName":"","ImageUrl":""},
		editFormOptions: [{"title":"不良品项编号","field":"DefectItemCode","type":"text"},
                               {"title":"不良品项名称","required":true,"field":"DefectItemName","type":"text"},
                               {"type":"group"},
                               {"title":"图片","field":"ImageUrl","type":"img"}],
		searchFormFields: {"DefectItemCode":"","DefectItemName":""},
		searchFormOptions: [{"title":"不良品项编号","field":"DefectItemCode","type":"like"},{"title":"不良品项名称","field":"DefectItemName","type":"like"}],
		columns: [{field:'DefectItemCode',title:'不良品项编号',type:'string'},
                       {field:'DefectItemName',title:'不良品项名称',type:'string',link:true},
                       {field:'ImageUrl',title:'图片',type:'img'},
                       {field:'CreateDate',title:'创建时间',type:'datetime'},
                       {field:'Creator',title:'创建人',type:'string'}],
		table: {
			key: 'DefectItem_Id',
			footer: "Foots",
			cnName: '不良品项',
			name: 'Base_DefectItem',
			url: "/Base_DefectItem/",
			sortName: "CreateDate"
		}
	}
}
